let advertising = [
  "autojs教程目录\nhttps://www.yuque.com/yashujs/bfug6u",
  "177个autojs脚本源码\nhttps://www.yuque.com/yashujs/bfug6u/uugfxd",
  "《autojs入门到实战》\nhttps://www.kancloud.cn/yashujs/test-doc-flag",
  "【AutoJs从入门到实战-哔哩哔哩】 https://b23.tv/uFbwtBc",
];
// let destination = "/sdcard/脚本/download/build/";
let destination = "/sdcard/脚本/download/build/";
// let destination = "/data/user/0/" + context.packageName + "/files/project/";
console.log("config: destination: " + destination);
let 限制群名列表 = ["这里写群名", "牙叔教程二群"];
let groupIds = ["xxxxxxxxxx", "582976637"];
let downloadFilePath = "/sdcard/脚本/download/build.zip";
let remoteUpdate;
// 如果files未定义
if (typeof files == "undefined") {
  // 使用nodejs判断文件是否存在
  var files = {
    exists: function (path) {
      var fs = require("fs");
      return fs.existsSync && fs.existsSync(path); // 用于判断文件是否存在
    },
  };
  remoteUpdate = files.exists("/sdcard/脚本/remoteUpdate.txt");
} else {
  console.log("files已定义");
  remoteUpdate = files.exists("/sdcard/脚本/remoteUpdate.txt");
}
let config = {
  advertising: advertising.join("\n"),
  destination: destination,
  downloadFilePath: downloadFilePath,
  port: 3001,
  remoteUpdate: remoteUpdate,
  clocks: [8, 12, 18, 22],
  限制群名列表: 限制群名列表,
  groupIds: groupIds,
  advertisingIntervalCheckTime: 1000 * 60,
};
module.exports = config;
